# -*- coding:utf-8 -*-

from redishelper import RedisHelper

obi = RedisHelper()  # 实例化

redis_sub = obi.subscribe()

while True:
    msg = redis_sub.parse_response()
    print(msg)  # 收到就打印收不到就卡住